package com.team.sns.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class MsgMsgRelation implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int id;
	
	private Integer referenceId;//引用消息的用户id
	
	private Integer referenceMsgId;//引用消息编号
	
	private Integer referencedId;
	
	private Integer referencedMsgId;
	
	private Integer type;
	
	private String createTime;
	
	private Integer page;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@Column
	public Integer getReferenceId() {
		return referenceId;
	}

	public void setReferenceId(Integer referenceId) {
		this.referenceId = referenceId;
	}
	@Column
	public Integer getReferenceMsgId() {
		return referenceMsgId;
	}

	public void setReferenceMsgId(Integer referenceMsgId) {
		this.referenceMsgId = referenceMsgId;
	}
	@Column
	public Integer getReferencedId() {
		return referencedId;
	}

	public void setReferencedId(Integer referencedId) {
		this.referencedId = referencedId;
	}
	@Column
	public Integer getReferencedMsgId() {
		return referencedMsgId;
	}

	public void setReferencedMsgId(Integer referencedMsgId) {
		this.referencedMsgId = referencedMsgId;
	}
	@Column(length = 1)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	@Column(columnDefinition = "DATE")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}
	

}
